<div class="page-header">
    <h3>Chi tiết lớp học</h3>
</div>
<?php echo form_open("/giaodich/seektutor/index/" . $query['id']); ?>
<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">Liên hệ</h3>
    </div>
    <div class="panel-body">
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="hoten">Họ tên</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="hoten" Class="form-control" placeholder="Họ tên gia sư..."
                       name="hoten" value="<?php echo $query['tenhienthi']; ?>" />
                       <?php echo form_error('hoten', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="address">Số nhà</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="address" Class="form-control" placeholder="Số nhà..."
                       name="sonha" value="<?php echo $query['diachi']; ?>" />
                       <?php echo form_error('sonha', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="address">Xã phường</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="address" Class="form-control" placeholder="Xã phường..."
                       name="xaphuong" value="<?php echo $query['xaphuong']; ?>" />
                       <?php echo form_error('xaphuong', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="tinhthanh">Tỉnh thành</label>
            </div>
            <div class="col-xs-6">
            <?php
                echo '<select name="tinhthanh">';
                echo $tinhthanh;
                echo '</select>';
                ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="mobile">Số điện thoại</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="mobile" Class="form-control" placeholder="Họ tên gia sư..."
                       name="mobile" value="<?php echo $query['sodienthoai']; ?>" />
                       <?php echo form_error('mobile', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
    </div>
</div>
<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">Thông tin học sinh</h3>
    </div>
    <div class="panel-body">
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="school">Trường</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="school" Class="form-control" placeholder="Trường của học sinh..."
                       name="school" value="<?php echo set_value('school'); ?>" />
                       <?php echo form_error('school', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="class">Lớp</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="class" Class="form-control" placeholder="Lớp của học sinh..."
                       name="class" value="<?php echo set_value('class'); ?>" />
                       <?php echo form_error('class', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>

        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="DayMon">Môn Cần Học</label>
            </div>
            <div class="col-xs-6">
                <?php
                foreach ($monhoc as $tungmon) {
                    ?>
                    <input type="checkbox" name="monhoc[]" value="<?php print_r($tungmon['TenMonHoc']) ?>"/><?php print_r($tungmon['TenMonHoc']) ?><br>
                    <?php
                }
                ?>
            </div>
        </div>

        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="numberday">Số buổi</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="numberday" Class="form-control" placeholder="Số buổi học..."
                       name="numberday" value="<?php echo set_value('numberday'); ?>" />
                       <?php echo form_error('numberday', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="timelearn">Thời gian học</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="timelearn" Class="form-control" placeholder="Thời gian học hàng tuần..."
                       name="timelearn" value="<?php echo set_value('timelearn'); ?>" />
                       <?php echo form_error('timelearn', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
                <h5 class="text-muted">Ví dụ: T2-4-6, 5-7h</h5>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="numberstudent">Số lượng học sinh</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="numberstudent" Class="form-control" placeholder="Số lượng học sinh tham gia học..."
                       name="numberstudent" value="<?php echo set_value('numberstudent'); ?>" />
                       <?php echo form_error('numberstudent', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="sex">Giới tính</label>
            </div>
            <div class="col-xs-6">
                <?php
                $opt_gioitinh = array(
                    '0' => 'Nam',
                    '1' => 'Nữ',
                    '2' => 'Không xác định',
                );
                echo form_dropdown('sex', $opt_gioitinh, '2', 'Class="form-control"');
                ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="otherrequirment">Yêu cầu khác</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="otherrequirment" Class="form-control" placeholder="Các yêu cầu kèm theo..."
                       name="otherrequirment" value="<?php echo set_value('otherrequirment'); ?>" />
                       <?php echo form_error('otherrequirment', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
                <h5 class="text-muted">Ví dụ: thời gian, địa điểm ....</h5>
            </div>
        </div>
    </div>
</div>
<div class="panel panel-info">
    <div class="panel-heading">
        <h3 class="panel-title">Yêu cầu gia sư</h3>
    </div>
    <div class="panel-body">
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="hocphi">Yêu cầu khác</label>
            </div>
            <div class="col-xs-6">
                <input type="text" id="hocphi" Class="form-control" placeholder="Mức học phí..."
                       name="hocphi" value="<?php echo set_value('hocphi'); ?>" />
                       <?php echo form_error('hocphi', '<p class="text-danger" style="font-size:15px;">', '</p>'); ?>
            </div>
        </div>
        <div class="form-group row">
            <div class="col-xs-4">
                <label class="control-label" for="level">Trình độ gia sư</label>
            </div>
            <div class="col-xs-6">
                <?php
                $opt_trinhdo = array(
                    '1' => 'Cao Đẳng',
                    '2' => 'Đại Học',
                    '3' => 'Thạc Sĩ',
                    '4' => 'Khác',
                );
                echo form_dropdown('level', $opt_trinhdo, '2', 'Class="form-control"');
                ?>
            </div>
        </div>
    </div>
</div>
<div class="form-group">
    <div class="col-xs-3"></div>
    <div class="col-xs-4">
        <button type="submit" class="btn btn-primary btn-lg btn-block">Đăng thông tin</button>
    </div>
    <div class="col-xs-2">
        <button type="reset" class="btn btn-default btn-lg btn-block">Hủy</button>
    </div>
</div>
<br>
<?php echo form_close(); ?>
</div>
</div>